Replace {tag} with a value or completely remove {any-tag}

Posted by HasanGursoy on Stack Overflow See other posts from Stack Overflow or by HasanGursoy
Published on 2010-05-27T16:02:21Z Indexed on 2010/05/27 16:41 UTC
Read the original article Hit count: 263

Filed under:
|
|
|

I've designed a multilingual web site and some values in database have a tag which will be replaced with it's language value, remove tags brackets ( in case {} ) or removed completely.

There are two cases:

Remove brackets:

value {mm} >> value mm

Remove completely:

value {mm} >> value

Also {tag} could be any length and can contain -

Can anybody help me with regex?

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET